home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
74.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
538b
|
28 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
int i;
static struct info{
char *name;
int employnum;
} people[] = {
"John", 111,
"Johna", 222,
"Johnx", 333,
"Johnny", 444,
"", 0
};
for(i=0; people[i].name[0] != '\0'; i++) {
printf("Name: %s\n", people[i].name);
printf("Employee Number: %d\n", people[i].empnum);
}
}